refactor(rivetkit-core): rename StopReason to ShutdownKind and kill enum fallthroughs#4765
Conversation
Code ReviewOverviewThis PR does two things: renames Embedded Bug Fix (Behavioral Change)The most important change is in Old behavior: let task_stop_reason = match reason {
protocol::StopActorReason::SleepIntent => StopReason::Sleep,
_ => StopReason::Destroy, // GoingAway and Lost were treated as Destroy!
};New behavior: protocol::StopActorReason::GoingAway => ShutdownKind::Sleep, // reallocation
protocol::StopActorReason::Lost => ShutdownKind::Sleep, // resurrectionThis is correct: Code QualityPositives:
Minor suggestions:
VerdictApprove with the minor notes above. The rename improves readability, the fallthrough elimination is the right call per the new CLAUDE.md rule, and the |
Preview packages published to npmInstall with: npm install rivetkit@pr-4765All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-eff8bc0
docker pull rivetdev/engine:full-eff8bc0Individual packagesnpm install rivetkit@pr-4765
npm install @rivetkit/react@pr-4765
npm install @rivetkit/rivetkit-napi@pr-4765
npm install @rivetkit/workflow-engine@pr-4765 |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: